//#define __MSP430G2231__
#include <msp430g2231.h>
#include <msp430.h>

unsigned int i=0;


int main(void) {
    WDTCTL = WDTPW | WDTHOLD;	// Stop watchdog timer
    P1DIR |= 0x01;  			// direccion del puerto


    for (;;)					// This empty for-loop will cause the lines of code within to loop infinitely
    {
        // Toggle P1.0 using exclusive-OR operation (^=)
        // P1OUT is another register which holds the status of the LED.
        // '1' specifies that it's ON or HIGH, while '0' specifies that it's OFF or LOW
        // Since our LED is tied to P1.0, we will toggle the 0 bit of the P1OUT register
    	P1OUT ^= 0x01;
    	// Delay between LED toggles.
    	for(i=0; i< 2000; i++);
    }
	return 0;
}
